﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLLFactory;
using IBLL;
using BLL;
namespace Face.Web.Admin
{
    public partial class AddAnnouncement : System.Web.UI.Page
    {
        IAnnounceBLL ia = new AnnounceBLL();
        //IBLL.IAnnounceBLL iAnnounceBLL = BLLFactory.DataAccess.getAnnouncIBLL();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            ia.writeNoteToXml(AnnoTitleText.Text, AnnoContentText.Text);  
           // ia.writeNoteToXml("hafjdslk", "asjfdkalsjdf");  

        }
        protected void btn_logout(object sender, EventArgs e)
        {
            Session.Remove("admin");
            Response.Redirect("/Admin/login.aspx");
        }
    }
}